package pojo;

public class Chinese implements Person{
    String name;
    int age;
    Person person;

    public Chinese(String name, int age, Person person) {
        this.name = name;
        this.age = age;
        this.person = person;
    }

    public Chinese() {

    }

    @Override
    public String toString() {
        return "Chinese{" +
                "姓名='" + name + '\'' +
                ", 年龄=" + age +
                ", 宠物=" + person +
                '}';
    }

    @Override
    public void eat() {
        System.out.println("我是中国人，我吃大米饭");
    }
}
